package API.Collection.List.ArrayList.program.test;

import java.util.Scanner;

public class testUser_nameContantJudge2_part2 {
    //判断name中是否全部是字符，若全部为字符，则返回true
    public static boolean nameContantJudge2_part2(String name){
        int count = 0;
        for (int i = 0; i < name.length(); i++) {
            if ((name.charAt(i) >= 'a' && name.charAt(i) <= 'z') || (name.charAt(i) >= 'A' && name.charAt(i) <= 'Z'))
                count++;
        }
        return count == name.length();
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        if(!nameContantJudge2_part2(sc.next()))
            System.out.println("名字格式正确");
        else
            System.out.println("名字格式错误");
    }
}
